package com.lxw.site.common;

import java.util.List;

/**
 * @author 梁星武
 * @version 0.0.3
 * @description DataResult
 * @since 2021/3/17 22:14
 * 公共返回包
 */
public class DataResult {
    private boolean success ;//是否成功
    private String code ; // 返回码
    private String msg ; //返回提示信息
    private List<? extends Object> result;//返回集合数据
    private Object data ; //返回对象数据

    @Override
    public String toString() {
        return "DataResult{" +
                "success=" + success +
                ", code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", result=" + result +
                ", data=" + data +
                '}';
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<? extends Object> getResult() {
        return result;
    }

    public void setResult(List<? extends Object> result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
